package com.sunxd;

import com.sunxd.dto.Book;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author sun.xd
 * @description: description
 * @date 2024/2/26 10:13
 */
@RestController
@RequestMapping(value = "test/admin/v1")
public class TestAnnController {
	private static final Log logger = LogFactory.getLog(TestAnnController.class);

	@PostMapping(value = "test1")
	public String getTest1(@RequestBody Book book) {
		logger.info(" 请求到了测试1 ，no {} " + book.getPageNo() + " , size {} " + book.getPageSize());
		return "abc";
	}

	@PostMapping(value = "test2")
	public String getTest2(@RequestBody Book book) {
		logger.info(" 请求到了测试2 ，no {} " + book.getPageNo() + " , size {} " + book.getPageSize());
		return "bcd";
	}

}
